package custom
Import Path
github.com/K-Phoen/grabana/variable/custom (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
custom.go
Package-Level Type Names (total 3)
Custom represents a "custom" templated variable.
Builder sdk.TemplateVar
func New(name string, options ...Option) *Custom
Option represents an option that can be used to configure a custom variable.
func AllValue(value string) Option
func Default(value string) Option
func DefaultAll() Option
func Hide() Option
func HideLabel() Option
func IncludeAll() Option
func Label(label string) Option
func Multiple() Option
func Values(values ValuesMap) Option
func New(name string, options ...Option) *Custom
func github.com/K-Phoen/grabana/dashboard.VariableAsCustom(name string, options ...Option) dashboard.Option
Package-Level Functions (total 10)
AllValue define the value used when selecting the "All" option.
Default sets the default value of the variable.
DefaultAll selects "All" values by default.
Hide ensures that the variable will not be displayed.
HideLabel ensures that this variable's label will not be displayed.
IncludeAll adds an option to allow all values to be selected.
Label sets the label of the variable.
Multiple allows several values to be selected.
New creates a new "custom" templated variable.
Values sets the possible values for the variable.
Package-Level Constants (only one)
const All = "$__all"![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |